/**
 * Copyright (c) 2011 Nokia Corporation.
 */

#ifndef __GAMEENABLEREXAMPLEMAIN__
#define __GAMEENABLEREXAMPLEMAIN__

#include <QtGui/QApplication>
#include <QPaintEngine>


#include "mygamewindow.h"

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);


    GE::GameWindow* theGameWindow = new MyGameWindow();
    theGameWindow->create();
    theGameWindow->setWindowState(Qt::WindowNoState);


#ifdef Q_OS_WIN32
    theGameWindow->showMaximized();
#else
    theGameWindow->showFullScreen();
#endif

    int result = a.exec();
    theGameWindow->destroy();
    delete theGameWindow;
    return result;
}


#endif /* __GAMEENABLEREXAMPLEMAIN__ */
